import { defineOverridesPreferences } from '@/lib/preferences';
import avatar from './assets/img/avatar.png';
/**
 * @description 项目配置文件
 * 只需要覆盖项目中的一部分配置，不需要的配置不用覆盖，会自动使用默认配置
 */
export const overridesPreferences = defineOverridesPreferences({
  // overrides
  app: {
    accessMode: 'backend',
    authPageLayout: 'panel-right',
    checkUpdatesInterval: 1,
    layout: 'header-nav',
    locale: 'zh-CN',
    loginExpiredMode: 'modal',
    name: import.meta.env.VITE_APP_TITLE,
    watermark: false,
  },
  breadcrumb: {
    enable: true,
    hideOnlyOne: false,
    showHome: false,
    showIcon: true,
    styleType: 'normal',
  },
  copyright: {
    companyName: 'web-os-client',
    companySiteLink: 'https://xxx.web-os.cn',
    date: '2025',
    enable: true,
    icp: '',
    icpLink: '',
  },
  logo: {
    enable: true,
    source: avatar,
  },
  theme: {
    builtinType: 'default',
    colorDestructive: 'hsl(348 100% 61%)',
    colorPrimary: 'hsl(231 98% 65%)',
    colorSuccess: 'hsl(144 57% 58%)',
    colorWarning: 'hsl(42 84% 61%)',
    radius: '0.5',
  },
});
